package com.zz.pojo;

import java.util.Date;

public class Pet {
    private String variety;
    private String petname;
    private String sex;
    private Date birthday;
    private Date buyday;
    private String master;
    private int love;
    private String health;


    @Override
    public String toString() {
        return "Pet{" +
                "variety='" + variety + '\'' +
                ", petname='" + petname + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday='" + birthday + '\'' +
                ", buy_day='" + buyday + '\'' +
                ", master='" + master + '\'' +
                ", love=" + love +
                ", health='" + health + '\'' +
                '}';
    }
    public Pet(String variety, String petname, String sex, Date birthday, Date buy_day, String master, int love, String health) {
        this.variety = variety;
        this.petname = petname;
        this.sex = sex;
        this.birthday = birthday;
        this.buyday = buy_day;
        this.master = master;
        this.love = love;
        this.health = health;
    }

    public Pet(String variety, String petname, String sex, Date birthday,  String health) {
        this.variety = variety;
        this.petname = petname;
        this.sex = sex;
        this.birthday = birthday;
/*        this.buyday =null;
        this.master = null;
        this.love = 0;*/
        this.health = health;
    }

    public Pet() {
    }

    public void setVariety(String variety) {
        this.variety = variety;
    }

    public void setPetname(String petname) {
        this.petname = petname;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public void setBuyday(Date buyday) {
        this.buyday = buyday;
    }

    public void setMaster(String master) {
        this.master = master;
    }

    public void setLove(int love) {
        this.love = love;
    }

    public void setHealth(String health) {
        this.health = health;
    }

    public String getVariety() {
        return variety;
    }

    public String getPetname() {
        return petname;
    }

    public String getSex() {
        return sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public Date getBuyday() {
        return buyday;
    }

    public String getMaster() {
        return master;
    }

    public int getLove() {
        return love;
    }

    public String getHealth() {
        return health;
    }
}
